package com.Nov_TwentySix;

public class Solution2011 {

    public int finalValueAfterOperations(String[] operations) {
        int res=0;
        for (String operation:operations){
            if (operation.charAt(1)=='+'){
                res++;
            }else {
                res--;
            }
        }
        return res;
    }

    public static void main(String[] args) {
        Solution2011 solution2011=new Solution2011();
        System.out.println(solution2011.finalValueAfterOperations(new String[]{"--X","X++","X++"}));
    }
}
